﻿@model List<KRM.Core.vTradeCustomerHoldOrder>
<form id="frConfirmPendingOrder">
    <input type="hidden" name="isCancel"id="isCancel"  value="0"/>
    <div class="medium-scroll fixhead row-fluid">
        <table class="table table-bordered table-fix tbl-selected" id="tbPendingInvoiceOrder">
            <thead id="tbPendingInvoiceOrderhead">
                <tr>
                    <th><input type="checkbox" style="margin-left: 5px;height: 100%;width: 30px;" onchange="ChangeSelecAll($(this).is(':checked'))"/></th>
                    <th>TradeAccount</th>
                    <th>TradeAccount</th>
                    <th>Trade OrderRef</th>
                    <th>Kybo OrderRef</th> 
                    <th>Date Added</th> 
                    <th>Order Value</th>
                    <th>Shipping Postcode</th>
                    <th>Customer Name</th>
                </tr></thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>
                            <input type="checkbox" name="selectedTradeOrderRef" value="@item.TradeOrderRef" style="height: 100%;width: 100%;"/>
                        </td>
                        <td>@item.TradeAccountName</td>
                        <td>@item.PONumber</td>
                        <td>@item.TradeOrderRef</td>
                        <td><a target="Blank" href="/orderview/orderdetail?OrderRef=@item.Orderref">@item.Orderref</a></td> 
                        <td>@item.DatePlaced</td> 
                        <td>@item.OrderValue</td>
                        <td>@item.Postcode</td>
                        <td>@item.Surname</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</form>